package com.njtoyo.taxi.admin.rest.wrapper.platform.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel(value = "角色创建对象", description = "角色创建对象")
public class RoleCreateWrapper {

    @NotBlank(message = "角色标识不能为空")
    @ApiModelProperty("角色标识")
    private String name;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty("角色名称")
    private String title;

    @NotNull(message = "资源权限不能为空")
    @Size(min = 1)
    @ApiModelProperty("资源权限的id集合")
    private List<Long> resourceIds;
}
